15 DIM LV%(100,8),LD$(100,1),R%(100),ID$(50),IL%(50),PR(50),IW(50),L%(100)
17 DIM WD$(100),W%(100,1),FW%(1)
20 GOSUB 18000: GOSUB 19000
50 SP = 128: SPEED= SP
60 HOME : PRINT
100 REM START
108 XX = 1
110 IF XX = 1 THEN GOSUB 1000
120 GOSUB 500
125 XX = XX +1: IF XX >5 THEN XX = 1
130 IF FW%(0) = 0 THEN PRINT "WHAT?": GOTO 110
140 ON FW%(0) GOSUB 2000,3000,4000,5000,5500,6000,7000,8000,9000,9500
142 IF FW%(0) >10 THEN ON FW%(0) -10 GOSUB 13000,13500,14500,15000,15500,16000,16500,10000
145 IF FW%(0) = 99 THEN PRINT "QUIT AFTER ";T;" TURNS.": SPEED= 255: END
150 T = T +1
160 GOTO 110
500 REM HANDLE INPUT
502 POKE -16368,0
505 FW%(0) = 0:FW%(1) = 0
507 PRINT
510 INPUT "-->";I$
515 IF I$ = "" THEN 510
520 WD$ = "":A = 1
530 IF MID$ (I$,A,1) = " " THEN 600
540 WD$ = WD$ + MID$ (I$,A,1)
550 A = A +1: IF A < = LEN(I$) THEN 530
600 REM FOUND WORD
610 FOR B = 1 TO NW: IF WD$(B) = WD$ THEN GOSUB 650
620 NEXT B:WD$ = "":A = A +1
630 IF A > LEN(I$) THEN RETURN
640 GOTO 530
650 FOR C = 0 TO 1
660 IF W%(B,C) > = 0 THEN FW%(C) = W%(B,C)
670 NEXT C
680 RETURN
1000 REM PRINT DESC
1002 IF LD$(L,0) = "S" THEN GOSUB 12000
1005 PRINT
1010 PRINT LD$(L,L%(L))
1011 IF L = 28 AND J = 0 THEN PRINT "THERE IS A DOOR WITH BARS."
1012 IF L = 28 AND J < >0 THEN PRINT "THE BARS ARE BROKEN LEAVING A PATH OUT."
1014 PRINT
1015 L%(L) = 1
1020 PRINT "OPEN PATHWAYS: ";: FOR A = 1 TO 8: IF LV%(L,A) < >0 THEN PRINT DN$(A);
1025 NEXT A
1030 PRINT
1040 PRINT "VISIBLE OBJECTS:"
1045 X = 0
1050 FOR A = 1 TO NI
1060 IF IL%(A) = L THEN PRINT " "ID$(A);:X = 1: IF PR(A) >0 AND R%(L) = 1 THEN PRINT " (PRICE: $"PR(A)")";
1065 IF IL%(A) = L THEN PRINT
1070 NEXT A
1080 IF X = 0 THEN PRINT "THERE ARE NONE."
1085 IF R%(L) < >0 THEN PRINT
1090 IF R%(L) = 1 THEN PRINT "CLERK ROBOT HERE."
1100 IF R%(L) >20 AND R%(L) <29 THEN PRINT "GUARD ROBOT HERE."
1110 IF R%(L) = 3 THEN PRINT "BERSERK ROBOT HERE!"
1120 IF T -E > = 100 THEN PRINT : PRINT "YOU ARE GETTING HUNGRY!"
1490 RETURN
2000 REM MOVE
2005 IF FW%(1) <101 OR FW%(1) >108 THEN PRINT "GO WHERE?": RETURN
2010 X = LV%(L,FW%(1) -100)
2020 IF X <0 OR X >NL THEN PRINT "NOT DEFINED YET.": RETURN
2025 IF L = 28 AND I$ = "BREAK OUT" THEN 15000
2030 IF X = 0 THEN PRINT "YOU CAN'T GO THAT WAY.": RETURN
2035 IF R%(L) = 3 THEN PRINT "ROBOT: TRYING TO ESCAPE, HUH? IT WON'T WORK! ZAP! YOU'RE DEAD!": PRINT : PRINT "STOP AFTER "T" TURNS.": SPEED= 255: END
2040 IF X = 6 AND IL%(7) < >0 THEN PRINT "ROBOT: I'M SORRY, BUT THE DRESS CODE REQUIRES THAT YOU WEAR A TIE.": RETURN
2042 IF L = 6 AND R < >0 THEN PRINT "ROBOT: I'M SORRY. YOU ARE A BAD CREDIT RISK. YOU CAN'T ENTER.": RETURN
2045 IF R%(L) = 20 +FW%(1) -100 AND IL%(12) = 0 THEN PRINT "ROBOT: I.D. ACCEPTED. YOU CAN PASS. GOOD DAY, MR. SMITH.": GOTO 2060
2050 IF R%(L) = 20 +FW%(1) -100 THEN PRINT "ROBOT: I'M SORRY, BUT YOU CANNOT GO THAT WAY WITHOUT AN I.D. CARD.": RETURN
2060 REM
2065 IF L = 39 AND X = 39 AND RND(1) <.35 THEN PL = 1 -PL:X = 35: IF PL = 0 THEN X = 40
2070 IF X = 17 THEN PRINT "ROBOT: SORRY, THIS INFORMATION BOOTH IS OUT OF ORDER.": RETURN
2080 IF LD$(X,0) = "S" THEN GOSUB 12000: RETURN
2090 IF L = 36 AND X = 37 THEN INPUT "ENTER COMBINATION: ";A$: IF VAL(A$) < >CM% THEN PRINT "SORRY. WRONG!": RETURN
2100 IF X = 38 THEN 14000
2200 L = X:XX = 1: RETURN
3000 REM PICK UP
3005 IF FW%(1) = 0 OR FW%(1) >NI THEN PRINT "NO SUCH THING HERE.": RETURN
3006 IF IL%(FW%(1)) = 0 THEN PRINT "YOU ARE ALREADY CARRYING IT!": RETURN
3007 IF IL%(FW%(1)) < >L THEN PRINT "NO SUCH THING HERE.": RETURN
3009 IF PR(FW%(1)) >0 AND R%(L) = 1 THEN PRINT "ROBOT: YOU CAN'T TAKE THAT WITHOUT PAYING FOR IT! PLEASE BUY IT IF YOU WANT IT.": RETURN
3010 IF WT +IW(FW%(1)) >150 AND IW(FW%(1)) < = 150 THEN PRINT "TOO HEAVY. YOU MUST DROP SOMETHING FIRST BEFORE YOU PICK IT UP.": RETURN
3020 IF IW(FW%(1)) >150 THEN PRINT "TOO HEAVY FOR YOU TO LIFT.": RETURN
3030 IF IW(FW%(1)) <0 THEN PRINT "IT IS SECURELY FASTENED.": RETURN
3040 IL%(FW%(1)) = 0:WT = WT +IW(FW%(1))
3045 PRINT "OK."
3050 IF FW%(1) = 10 THEN M = ABS(M)
3060 RETURN
4000 REM DROP
4010 IF FW%(1) <1 OR FW%(1) >NI THEN PRINT "YOU ARE NOT CARRYING ONE.": RETURN
4020 IF IL%(FW%(1)) < >0 THEN PRINT "YOU ARE NOT CARRYING ONE.": RETURN
4030 IL%(FW%(1)) = L:WT = WT -IW(FW%(1))
4040 PRINT "OK."
4042 IF L = 39 THEN PRINT "IT SLIDES INTO A CREVICE IN THE RUINS AND IS LOST.":IL%(FW%(1)) = -1
4045 IF FW%(1) = 10 THEN M = - ABS(M)
4050 RETURN
5000 REM LOOK
5010 XX = 1
5015 L%(L) = 0
5020 RETURN
5500 REM INV
5505 X = 0
5510 PRINT "YOU ARE CARRYING: "
5520 FOR A = 1 TO NI
5525 IF A = 10 THEN 5540
5530 IF IL%(A) = 0 THEN PRINT " "ID$(A):X = 1
5540 NEXT A
5545 IF M >0 THEN PRINT " $"M" IN CASH.":X = 1
5550 IF X = 0 THEN PRINT "NOTHING."
5560 RETURN
6000 REM SAVE GAME
6005 SPEED= 255
6010 INPUT "GAME #";A
6015 IF A <0 THEN 6010
6020 PRINT D$"OPEN GAME."NA$",L500"
6030 PRINT D$"WRITE GAME."NA$",R"A
6040 PRINT L: FOR B = 1 TO NI: PRINT IL%(B): NEXT B: PRINT WT: PRINT T
6050 FOR B = 1 TO NL: PRINT R%(B): NEXT B: PRINT M: PRINT E
6060 FOR B = 1 TO NI: PRINT PR(B): NEXT B
6070 PRINT CM%: PRINT R: PRINT J
6080 PRINT PW: PRINT RM
6090 PRINT D$"CLOSE"
6100 SPEED= 128: RETURN
6500 REM LOAD GAME
6510 ONERR GOTO 6900
6520 INPUT "GAME #";A
6525 IF A <0 THEN 6520
6530 PRINT D$"OPEN GAME."NA$",L500"
6540 PRINT D$"READ GAME."NA$",R"A
6550 INPUT L: FOR B = 1 TO NI: INPUT IL%(B): NEXT B: INPUT WT: INPUT T
6560 FOR B = 1 TO NL: INPUT R%(B): NEXT B: INPUT M: INPUT E
6565 FOR B = 1 TO NI: INPUT PR(B): NEXT B
6570 INPUT CM%: INPUT R: INPUT J
6575 IF J THEN LV%(28,8) = 27
6580 INPUT PW: INPUT RM
6590 PRINT D$"CLOSE"
6595 POKE 216,0
6600 RETURN
6900 REM ONERR
6905 POKE 216,0
6910 PRINT D$"CLOSE"
6920 PRINT "GAME NOT FOUND."
6930 RUN
7000 REM WEIGH
7010 IF IL%(2) < >L AND IL%(2) < >0 THEN PRINT "THERE IS NO SCALE.": RETURN
7020 IF FW%(1) = 2 THEN PRINT "YOU CAN'T WEIGH IT ON ITSELF!": RETURN
7030 IF FW%(1) <1 OR FW%(1) >NI THEN PRINT "THERE IS NO SUCH ITEM HERE.": RETURN
7040 IF IL%(FW%(1)) < >L AND IL%(FW%(1)) < >0 THEN PRINT "THERE IS NO SUCH ITEM HERE.": RETURN
7050 PRINT "IT WEIGHS ";IW(FW%(1));" POUNDS."
7060 RETURN
8000 REM READ
8005 IF FW%(1) = 200 THEN PRINT "THE BARS LOOK RUSTY AND WEAK.": RETURN
8010 IF FW%(1) <1 OR FW%(1) >NI THEN PRINT "NO SUCH THING HERE.": RETURN
8020 IF IL%(FW%(1)) < >L AND IL%(FW%(1)) < >0 THEN PRINT "NO SUCH THING HERE.": RETURN
8030 IF FW%(1) = 5 THEN PRINT "THE SIGN SAYS: INSERT $2.50": RETURN
8050 IF FW%(1) = 10 THEN PRINT "THEY ARE MOSTLY DOLLAR COINS, BUT THERE ARE SOME $2.50 PIECES.": RETURN
8060 IF FW%(1) = 4 THEN PRINT "IT IS HOOKED TO A MODEM.": RETURN
8070 IF FW%(1) = 8 THEN PRINT "IT IS THE ADVENTURES OF SUPERROBOT.": RETURN
8080 IF FW%(1) = 12 THEN PRINT "IT BELONGS TO SECRET AGENT BILL SMITH, AND HAS HIGHEST SECURITY CLEARANCE.": RETURN
8090 IF FW%(1) = 14 THEN PRINT "THEY APPEAR TO BE THE FRAGMENTS OF A BUTCHER'S KNIFE.": RETURN
8100 IF FW%(1) = 11 THEN 8200
8110 IF FW%(1) = 13 THEN 8300
8190 PRINT "NOTHING INTERESTING.": RETURN
8200 PRINT "TITLE: HOW TO MAKE THE MOST OF COMPUTER NETWORKS"
8210 PRINT : PRINT "YOU CAN ACCESS THE GOVERNMENT'S PUBLIC INFORMATION DATA FILES THROUGH ANY MODEM-EQUIPPED COMPUTER. TO DO THIS SIMPLY TYPE:"
8220 PRINT " PR#3"
8230 PRINT "THEN, YOU SELECT THE GOVERNMENT NETWORK BY TYPING:": PRINT " GOVT"
8240 PRINT "NOW YOU ARE ASKED THE NAME OF THE FILE YOU WANT. FILES YOU HAVE ACCESS TO"
8250 PRINT "INCLUDE 'POP', WHICH CONTAINS THE CURRENT POPULATION OF THE U.S.A. HAVE FUN!"
8260 RETURN
8300 PRINT " T O P S E C R E T"
8310 PRINT "TO: WORKERS ON PROJECT CHRONOS"
8320 PRINT : PRINT "THE CURRENT COMBINATION TO THE DOOR OF ROOM ";RM" IS POSTED ON THE GOVERNMENT": PRINT "COMPUTER NETWORK IN THE FILE TITLED 'CHRONOS'. THE PASSWORD TO THE FILE IS '";PW$(PW);"'."
8330 RETURN
8490 RETURN
8500 REM TRIAL/JAIL
8510 PRINT "* A POLICE ROBOT ARRIVES. *"
8515 PRINT
8520 PRINT "POLICE: YOU ARE UNDER ARREST. YOU HAVE A RIGHT TO REFRAIN FROM INPUTTING ANYTHING; ANYTHING YOU INPUT MAY BE HELD AGAINST YOU IN COURT."
8540 PRINT : PRINT "* YOU ARE TAKEN TO A COURTROOM. * * THE JUDGE AND JURY ARE ALL ROBOTS. *"
8550 PRINT
8560 PRINT : PRINT "JUDGE: YOU ARE CHARGED WITH ";
8580 IF CH = 1 THEN PRINT "ASSAULT OF": PRINT " A ROBOT. ";
8590 IF CH < >1 THEN PRINT "THEFT OF": PRINT " SERVICES. ";
8600 PRINT "HOW DO YOU PLEAD?"
8605 PRINT
8610 INPUT "DEFENDANT: ";I$
8615 PRINT
8620 IF LEN(I$) > = 6 AND LEFT$(I$,6) = "GUILTY" THEN 8900
8630 PRINT "JUDGE: THE DISTRICT ATTORNEY WILL NOW PRESENT HIS CASE."
8635 PRINT
8640 PRINT "* THE D.A. IS ALSO A ROBOT. *"
8645 PRINT
8650 PRINT "D.A.: I WILL NOW CALL UPON THE ";
8660 IF R%(L) = 1 THEN PRINT "CLERK "
8665 IF R%(L) < >1 THEN PRINT "GUARD "
8670 PRINT " ROBOT, SERIAL #" INT( RND(1) *999999)" TO TESTIFY."
8672 PRINT
8677 IF CH < >1 THEN 8700
8680 PRINT "ROBOT: THIS MAN ASSAULTED ME WITH A": IF IL%(9) = 0 THEN PRINT " RAY GUN ";
8810 PRINT "JUDGE: WHAT DOES THE DEFENDANT HAVE TO SAY FOR HIMSELF?"
8815 PRINT
8820 INPUT "DEFENDANT: ";I$
8822 PRINT
8825 PRINT "JUDGE: THE JURY WILL NOW REACH A VERDICT.": FOR A = 1 TO 1500: NEXT A
8827 PRINT
8830 PRINT "JURY: THE WORD OF A ROBOT IS MORE RELIABLE THAN THAT OF A MERE HUMAN. THEREFORE, I FIND THE DEFENDANT GUILTY AS CHARGED."
8840 PRINT
8900 REM SENTENCING
8905 SE = 2
8910 IF CH = 1 THEN PRINT "JUDGE: YOU ARE HEREBY SENTENCED TO DEATH BY ELECTROCUTION.": PRINT : PRINT "YOU LOSE.": PRINT "STOP AFTER ";T;" TURNS.": SPEED= 255: END
8920 PRINT "JUDGE: YOU ARE HEREBY SENTENCED TO": PRINT " "SE" YEARS IN PRISON. BAILIFF, PLEASE": PRINT " REMOVE THE PRISONER... NEXT CASE!"
8930 PRINT :L = 28
8940 FOR A = 1 TO NI: IF IL%(A) = 0 THEN IL%(A) = 29
8942 M = - ABS(M)
8945 NEXT A
8950 XX = 1: RETURN
9000 REM SHOOT
9010 IF IL%(9) < >0 THEN PRINT "WITH WHAT?": RETURN
9020 IF R%(L) = 0 THEN PRINT "NOTHING TO SHOOT AT.": RETURN
9030 IF R%(L) < >3 THEN PRINT "THE ROBOT'S FORCE FIELD REPELS THE RAY.":CH = 1: GOTO 8500
9040 PRINT "THE DEFECT WHICH CAUSED THE ROBOT TO MALFUNCTION ALSO AFFECTED ITS NORMALLY"
9050 PRINT "INVULNERABLE FORCE-FIELD. YOUR SHOT DESTROYS IT."
9060 R%(L) = 0
9070 RETURN
9500 REM BUY
9501 IF FW%(1) <1 OR FW%(1) >NI THEN PRINT "NO SUCH THING HERE.": RETURN
9503 IF IL%(FW%(1)) = 0 THEN PRINT "YOU ARE ALREADY CARRYING IT!": RETURN
9505 IF IL%(FW%(1)) < >L THEN PRINT "NO SUCH THING HERE.": RETURN
9510 IF PR(FW%(1)) = 0 THEN PRINT "THERE IS NO PRICE ON IT.": RETURN
9520 P = PR(FW%(1))
9530 IF P >M THEN PRINT "YOU DON'T HAVE ENOUGH MONEY!": RETURN
9540 M = M -P
9550 PR(FW%(1)) = 0
9560 GOTO 3000
10000 REM COMPUTER
10002 IF IL%(4) < >L THEN PRINT "NOTHING TO TURN ON.": RETURN
10005 PRINT "ROBOT: WHEN YOU ARE FINISHED, TYPE 'OFF' TO SHUT IT OFF.": PRINT : INPUT "HIT RETURN TO TURN APPLE X ON. ";I$
10007 SPEED= 255
10010 HOME : PRINT " A P P L E X": PRINT
10020 PRINT 2 ^25 -2000;" BYTES FREE"
10030 PRINT : INPUT ">";I$
10040 IF I$ = "PR#3" THEN 10100
10045 IF I$ = "OFF" THEN XX = 1: SPEED= 128: RETURN
10050 I = INT( RND(1) *5) +1
10055 ON I GOSUB 10060,10065,10070,10075,10080: GOTO 10030
10110 PRINT : PRINT "YOU ARE NOW IN NETWORK MODE."
10120 PRINT : INPUT ")";I$
10125 IF I$ = "OFF" THEN XX = 1: SPEED= 128: RETURN
10130 IF I$ < >"GOVT" THEN PRINT "INPROPER DATA BANK REFERENCE<CTRL-G>": GOTO 10120
10140 INPUT "FILE NAME: ";I$
10150 IF I$ = "POP" THEN PRINT "CURRENT POPULATION OF USA ACCORDING TO CENSUS BUREAU AS OF 7/6/2121: EXACTLY 0 PERSONS, 23,241,203 ROBOTS.": GOTO 10120
10160 IF I$ = "CHRONOS" THEN 10200
10170 PRINT "NO SUCH FILE<CTRL-G>": GOTO 10120
10200 REM CHRONOS
10210 INPUT "PASSWORD: ";I$
10220 IF I$ < >PW$(PW) THEN PRINT "IMPROPER PASSWORD": GOTO 10120
10230 PRINT "THE COMBINATION IS ";CM%
10240 GOTO 10120
11000 REM RESTAURANT
11010 PRINT "ROBOT: HERE IS THE MENU:"
11020 PRINT " (1) MARSBURGER"
11025 PRINT " $120"
11030 PRINT " (2) GREEN GOOP (SPECIAL OF THE WEEK!)"
11035 PRINT " $140"
11040 PRINT " (3) CAVIAR AND CHAMPAGNE"
11045 PRINT " $350"
11047 PRINT "(HIT RETURN IF YOU DO NOT WANT TO ORDER.)"
11050 PRINT : INPUT "YOUR ORDER: ";I$
11060 IF I$ = "" THEN RETURN
11070 IF VAL(I$) <1 OR VAL(I$) >3 THEN 11050
11080 PRINT : PRINT "YOU ARE SERVED."
11090 PRINT "MMM. IT TASTES GOOD."
11095 E = T
11100 PRINT : PRINT "ROBOT: YOUR CHECK, SIR."
11120 PRINT : PRINT "YOU DO NOT HAVE ENOUGH MONEY!"
11130 CH = 0: GOTO 8500
12000 REM SUBWAY
12005 L = LV%(L,6)
12010 PRINT "YOU ENTER AT THE ";LD$(L,1): PRINT "STATION."
12015 PRINT
12020 IF LV%(L,1) < >0 AND LV%(L,2) < >0 THEN PRINT "WHICH TRAIN: NORTHBOUND OR SOUTHBOUND?": INPUT "";I$:I = 2: IF LEFT$(I$,1) = "N" THEN I = 1
12030 IF LV%(L,1) = 0 THEN I = 2
12040 IF LV%(L,2) = 0 THEN I = 1
12050 L = LV%(L,I)
12060 PRINT "NEXT STATION: ";LD$(L,1)
12065 IF LV%(L,I) = 0 THEN PRINT "END OF THE LINE.":L = LV%(L,8):XX = 1: RETURN
12070 PRINT
12080 INPUT "DO YOU WANT TO GET OFF HERE? ";I$: IF LEFT$(I$,1) = "Y" THEN L = LV%(L,8):XX = 1: RETURN
12090 PRINT : GOTO 12050
13000 REM CALL ROBOT
13002 IF R%(L) = 0 THEN PRINT "NOBODY TO CALL.": RETURN
13003 IF R%(L) < >1 THEN 13200
13010 IF L = 6 THEN 11000
13020 IF L = 34 THEN 13300
13030 IF L = 36 THEN 13400
13040 IF L = 3 THEN PRINT "ROBOT: WOULD YOU LIKE TO TRY OUT THE APPLE X?": INPUT "";I$: IF LEFT$(I$,1) = "Y" THEN 10000
13045 IF L = 3 THEN RETURN
13050 PRINT "ROBOT: CAN I HELP YOU?"
13060 INPUT " ";I$
13065 IF I$ = "" THEN 13060
13070 GOSUB 520
13080 IF FW%(0) = 10 THEN GOSUB 9500: RETURN
13085 IF FW%(1) = 4 AND L = 3 THEN 10000
13090 PRINT "ROBOT: I AM NOT PROGRAMMED TO ANSWER QUERIES OF THIS TYPE."
13190 RETURN
13200 REM GUARD AND BERZERK ROBOTS
13210 IF R%(L) = 3 THEN PRINT "THE ROBOT KILLS YOU WHILE YOU ARE ATTEMPTING TO COMMUNICATE WITH IT!": PRINT : PRINT "STOP AFTER ";T;" TURNS.": END
13220 PRINT "ROBOT: YES?"
13230 INPUT " ";I$
13240 PRINT "ROBOT: TELL THAT TO THE JUDGE!"
13250 RETURN
13300 REM UNIVERSITY
13310 PRINT "ROBOT: WHAT ROOM NUMBER DO YOU NEED?": INPUT "";I$
13320 IF VAL(I$) < >RM THEN PRINT "ROBOT: SORRY, THAT ROOM IS NOT OPEN.": RETURN
13330 PRINT : PRINT "THE WALL SLIDES OPEN, AND YOU ARE BRISKLY CARRIED ON A PLATFORM FLOATING INCHES ABOVE THE FLOOR, THROUGH SEVERAL HALLWAYS. YOU COME TO A STOP."
13340 L = 36:XX = 1: RETURN
13400 REM HALL
13410 PRINT "ROBOT: DO YOU WANT TO GO BACK TO THE LOBBY?": INPUT "";I$: IF LEFT$(I$,1) = "Y" THEN L = 34:XX = 1: RETURN
13420 RETURN
13500 REM PLAY GAME
13510 PRINT : PRINT "COST: $2.50"
13520 IF M <2.5 THEN PRINT "YOU CAN'T AFFORD IT.": RETURN
13525 SPEED= 255
13530 M = M -2.5
13540 GR : HOME
13550 GX = 20:GY = 20:GT = 200:GS = 0
13555 GH = 0
13560 PRINT "**** SUPER STELLAR ALIEN KAPOW! ****"
14080 IF Y > = 1970 AND Y <2000 THEN PRINT "BACK IN THE 20TH CENTURY AT LAST! YOU WIN!"
14085 IF Y > = 1970 AND Y <2000 THEN PRINT " FOR EXTRA CREDIT YOU CAN TRY TO FIGUREOUT THE RULES TO THE ARCADE GAME, IF YOUHAVEN'T ALREADY. IT IS TOTALLY": PRINT "IRRELEVANT TO THE ADVENTURE, BUT I THREWIT IN FOR THE HECK OF IT."
14090 IF Y > = 2000 THEN PRINT "WHY DID YOU GO TO THE FUTURE AGAIN? I DIDN'T PROGRAM ANY ADVENTURE GAME FOR THAT CENTURY, AND THE TIME MACHINE IS OUT OF POWER. YOU'RE ON YOUR OWN."
14100 IF Y <1970 AND Y > = 1900 THEN PRINT "WELL, AT LEAST YOU MADE IT TO THE 20TH CENTURY, BUT YOU'LL HAVE TO WAIT AROUND A WHILE FOR APPLE COMPUTERS TO COME.": IF Y <1939 THEN PRINT "PS: BUY ACTION COMICS #1 FOR 10 CENTS WHEN IT COMES OUT."
14110 IF Y <1900 THEN PRINT "YOU END UP IN THE YEAR ";Y;". I DIDN'T": PRINT "PROGRAM ANY ADVENTURE GAME FOR THAT CENTURY, AND THE TIME MACHINE IS OUT OF POWER. YOU'RE ON YOUR OWN."
14120 PRINT "STOP AFTER "T" TURNS.": SPEED= 255: END
14500 REM EAT
14502 IF FW%(1) = 0 AND L = 6 THEN 11000
14510 IF FW%(1) <1 OR FW%(1) >NI THEN PRINT "EAT WHAT?": RETURN
14520 IF IL%(FW%(1)) < >0 THEN PRINT "EAT WHAT?": RETURN
14530 IF IW(FW%(1)) >2 THEN PRINT "DON'T BE RIDICULOUS.": RETURN
14540 IF FW%(1) = 3 THEN PRINT "MMM. THAT WAS GOOD.":E = T: GOTO 14565
14542 SPEED= 30
14545 PRINT "CHOMP CHOMP CHOMP"
14547 SPEED= SP
14550 PRINT "IT COULD HAVE USED A LITTLE SALT."
14560 IF T -E >150 THEN PRINT "NOT VERY NUTRITIOUS. I'M STILL HUNGRY."
14565 IL%(FW%(1)) = -1
14567 IF FW%(1) = 10 THEN M = 0
14570 RETURN
15000 REM BREAK OUT OF JAIL
15010 IF L < >28 THEN PRINT "WHAT?": RETURN
15020 PRINT "THE RUSTY, WEAKENED BARS GIVE WAY AND THERE IS AN OPENING OUT."
15030 LV%(28,8) = 27:J = 1
15040 RETURN
15500 REM ATTACK
15510 IF IL%(9) = 0 THEN 9000
15515 IF R%(L) = 0 THEN PRINT "NOTHING TO ATTACK.": RETURN
15520 IF IL%(1) < >0 THEN PRINT "YOU HAVE NO HOPE OF FIGHTING A TOUGH METAL ROBOT WITH YOUR BARE HANDS.": RETURN
15530 PRINT "THE KNIFE SHATTERS AGAINST THE ROBOT'S TOUGH SIDE."
15535 IL%(1) = -1
15537 IL%(14) = L
15538 IF R%(L) = 3 THEN PRINT "THE ROBOT KILLS YOU.": PRINT "STOP AFTER "T" TURNS.": SPEED= 255: END
15540 CH = 1: GOTO 8500
16000 REM OPEN
16010 PRINT "ALL THE DOORS OPEN AND CLOSE AUTOMATICALLY, SO THERE IS NO NEED TO OPEN THEM OR CLOSE THEM."
16020 RETURN
16500 REM HELP
16510 HOME : PRINT
16520 PRINT "SOME AVAILABLE COMMANDS: ": PRINT
16530 PRINT " INV": PRINT " GET (OBJECT)": PRINT " BUY (OBJECT)": PRINT " DROP (OBJECT)"
20005 DATA "N ","S ","E ","W ","U ","D ","IN ","OUT"
20010 REM #PLACES
20030 REM PLACE DESC,SHORT DESC
20040 DATA "YOU ARE IN THE PARKING LOT OF A SHOPPINGMALL. A ROAD IS TO THE EAST.","YOU'RE IN PARKING LOT TO MALL"
20050 DATA "YOU ARE IN THE SHOPPING MALL. THERE IS A COMPUTER STORE NEXT TO YOU.","YOU'RE IN MALL AT COMPUTER STORE."
20060 DATA "YOU ARE IN THE COMPUTER STORE.","YOU'RE IN COMPUTER STORE."
20070 DATA "TO THE WEST IS A BACK-ISSUE COMIC BOOK STORE; TO THE EAST IS A RESTAURANT.","YOU'RE BY COMIC STORE AND RESTAURANT."
20080 DATA "THIS IS A STORE CATERING TO COMIC BOOK COLLECTORS (YEP, THEY STILL EXIST EVEN IN THE FUTURE.)","YOU'RE IN COMIC STORE."
20085 REM 6:
20090 DATA "YOU ARE IN A RESTAURANT.","YOU'RE IN RESTAURANT."
20100 DATA "TO THE WEST IS AN ARCADE, AND TO THE EAST A GROCERY STORE.","YOU'RE BY ARCADE AND GROCERY."
20110 DATA "YOU ARE IN AN ARCADE.","YOU'RE IN ARCADE."
20120 DATA "TO THE WEST IS A BUTCHER SHOP, AND TO THE EAST IS A CLOTHING STORE.","YOU'RE BY BUTCHER AND CLOTHING STORE."
20130 DATA "YOU ARE IN A BUTCHER SHOP.","YOU'RE IN BUTCHER SHOP."
20140 DATA "YOU ARE IN A CLOTHING STORE.","YOU'RE IN CLOTHING STORE."
20150 DATA "YOU ARE IN A GROCERY.","YOU'RE IN GROCERY."
20160 DATA "YOU ARE ON A N-S ROAD. THERE IS A SHOPPING MALL TO THE WEST.","YOU'RE ON ROAD BY MALL."
20170 DATA "AFTER GOING ABOUT 100 FEET YOU FIND THATTHE ROAD IS BLOCKED BY FALLEN DEBRIS ANDYOU CAN'T GO ANY FURTHER.","YOU'RE AT DEAD END"
20180 DATA "YOU ARE NEXT TO AN INFORMATION BOOTH MANNED BY A ROBOT. THE ROAD CONTINUES SOUTH.","YOU'RE BY INFO BOOTH."
20190 DATA "YOU ARE IN A PHONE BOOTH. THE PHONE IS OUT OF ORDER, AND THE CASH BOX HAS BURSTOPEN.","YOU'RE IN PHONE BOOTH."
20200 DATA "I","I"
20210 DATA "YOU ARE IN THE LIBRARY.","YOU'RE IN LIBRARY."
20220 DATA "TO THE WEST IS A LIBRARY, AND THE CITY HALL IS TO THE EAST.","YOU'RE BY LIBRARY AND CITY HALL."
20230 DATA "YOU'RE IN THE LOBBY OF THE CITY HALL. THERE IS A STAIRWAY HERE.","YOU'RE IN CITY HALL LOBBY."
20240 DATA "THE ROAD ENDS HERE. THERE IS A STAIRWAY LEADING DOWN TO A SUBWAY STATION.","YOU'RE BY SUBWAY STATION."
20245 DATA "S","CITY HALL"
20250 DATA "YOU ARE IN A HALLWAY LEADING TOWARDS OFFICES TO THE EAST.","YOU'RE IN HALLWAY."
20260 DATA "THERE IS AN OFFICE TO THE NORTH AND ANOTHER TO THE SOUTH.","YOU'RE BETWEEN TWO OFFICES."
20270 DATA "YOU ARE IN AN OFFICE.","YOU'RE IN OFFICE"
20280 DATA "YOU ARE IN AN OFFICE.","YOU'RE IN OFFICE"
20290 DATA "YOU ARE IN A HALLWAY IN THE JAIL. A CELL IS TO THE SOUTH AND A CLOSET TO THENORTH. A STAIRWAY LEADS UP.","YOU'RE IN JAIL HALLWAY."
20300 DATA "YOU ARE IN A JAIL CELL.","YOU'RE IN JAIL CELL."
20310 DATA "YOU ARE IN A CLOSET.","YOU'RE IN A CLOSET."
20320 DATA "S","MARKET STREET"
20330 DATA "S","METRO UNIVERSITY"
20340 DATA "S","ENDSVILLE"
20350 DATA "YOU ARE ON A STREET WHICH IS BLOCKED IN BOTH DIRECTIONS BY FALLEN DEBRIS.","YOU'RE ON BLOCKED STREET."
20360 DATA "YOU ARE IN THE MAIN LOBBY OF THE METRO UNIVERSITY BUILDING. NO DOORS OF ANY KIND ARE VISIBLE BESIDES THE ENTRANCE TO THE SUBWAY.","YOU'RE IN UNIVERSITY LOBBY."
20370 DATA "YOU ARE ON A PLAIN WHERE A BOMB BLAST HAS COMPLETELY DESTROYED THE TOWN. THERE IS RUBBLE ALL AROUND. THE PLAIN STRETCHES INTO THE MIST.","YOU'RE BY SUBWAY STOP."
20380 DATA "YOU ARE IN FRONT OF A DOOR.","YOU'RE IN FRONT OF DOOR."
20390 DATA "YOU ARE IN THE LABORATORY FOR *** PROJECT CHRONOS *** THE TOP SECRET PROJECT WHICH DID RESEARCH INTO TIME TRAVEL.","YOU'RE IN LAB."
20400 DATA "T","T"
20405 DATA "YOU ARE ON PLAIN.","YOU ARE ON PLAIN."
20410 DATA "YOU ARE BY A PHONE BOOTH.","YOU'RE BY PHONE BOOTH."
20990 DATA "",""
21000 REM MOVEMENT, ROBOTS
21010 DATA 0,0,13,0,0,0,2,0,0
21020 DATA 7,4,0,0,0,0,3,1,0
21030 DATA 0,0,0,0,0,0,0,2,1
21040 DATA 2,0,6,5,0,0,0,0,0
21050 DATA 0,0,0,0,0,0,0,4,1
21055 REM 6:
21060 DATA 0,0,0,0,0,0,0,4,1
21070 DATA 9,2,12,8,0,0,0,0,0
21080 DATA 0,0,0,0,0,0,0,7,0
21090 DATA 0,7,11,10,0,0,0,0,0
21100 DATA 0,0,0,0,0,0,0,9,0
21110 DATA 0,0,0,0,0,0,0,9,1
21120 DATA 0,0,0,0,0,0,0,7,1
21130 DATA 14,15,0,1,0,0,0,0,0
21140 DATA 0,13,0,0,0,0,0,0,0
21150 DATA 13,19,0,0,0,0,17,0,0
21160 DATA 0,0,0,0,0,0,0,40,0
21170 DATA 0,0,0,0,0,0,0,15,1
21180 DATA 0,0,0,0,0,0,0,19,0
21190 DATA 15,21,20,18,0,0,0,0,0
21200 DATA 0,0,0,0,23,27,0,19,26
21210 DATA 19,0,0,0,0,22,0,0,3
21215 DATA 0,30,0,0,0,0,0,21,0
21220 DATA 0,0,24,0,0,20,0,0,23
21230 DATA 26,25,0,23,0,0,0,0,0
21240 DATA 0,0,0,0,0,0,0,24,3
21245 DATA 0,0,0,0,0,0,0,24,0
21250 DATA 29,28,0,0,20,0,0,0,25
21260 DATA 0,0,0,0,0,0,0,0,0
21270 DATA 0,0,0,0,0,0,0,27,0
21280 DATA 22,31,0,0,0,0,0,33,0
21290 DATA 30,32,0,0,0,0,0,34,0
21300 DATA 31,0,0,0,0,0,0,35,0
21310 DATA 0,0,0,0,0,30,0,0,0
21320 DATA 0,0,0,0,0,31,0,0,1
21330 DATA 39,39,39,39,0,32,0,0,0
21340 DATA 0,0,0,0,0,0,37,0,1
21350 DATA 0,0,0,0,0,0,38,36,0
21360 DATA 0,0,0,0,0,0,0,0,0
21370 DATA 39,39,39,39,0,0,0,0,0
21380 DATA 39,39,39,39,0,0,16,0,0
23000 REM ITEMS
23030 DATA BUTCHER'S KNIFE,10,15,0
23033 DATA SCALE,10,140,0
23036 DATA FOOD PILLS,12,1 ,10
23040 DATA APPLE X COMPUTER,3,40,10000
23050 DATA VIDEO GAME MACHINE,8,-1,0
23060 DATA SUIT OF CLOTHES,11,6,995
23070 DATA TIE,11,.25,20
23090 DATA COMIC,5,.3,6
23100 DATA RAY GUN,14,3,0
23110 DATA COINS,16,5,0
23120 DATA BOOK,18,3,0
23130 DATA I.D. CARD,29,.01,0
23140 DATA LETTER,26,.05,0
23150 DATA SHATTERED PIECES OF METAL,-1,15,0
23160 DATA TIME MACHINE,37,2000,0
23990 DATA "",-999,-999,-999
23995 DATA SESAME,SNARK,QUARK,PEARTREE,MOONSHINE,SHOE,TURKEY,CHRISTMAS,HALLOWEEN,ROBOTWAR